#@embedLayout()


#define content()
<form id="formId" method="post">
    <input type="hidden" name="dict.dict_id" id="dict_id" value="#(dict.dict_id??)">
    <table class="table table-bordered">
        <tr>
            <td style="padding-top:15px;">授权内容:</td>
            <td><input type="text" id="dictText" name="dict.dict_text" class="easyui-textbox"
                       data-options="required:true,validType:{length:[0,500]},multiline:true"
                       value="#(dict.dictText??)" style="width:98%;height:150px;">
            </td>
        </tr>
    </table>
</form>

#end


#define css()


#end


#define js()

<script type="text/javascript">

    function authorization_save() {
        var url = contextRootPath + '/servicePlugin/authorizationSave';

        $('#formId').form('submit', {
            url: url,
            onSubmit: function () {
                var flag = $(this).form('enableValidation').form('validate');
                if (flag) {
                    showProcess(true, '温馨提示', '正在提交数据...');
                }
                return flag;
            },
            success: function (data) {
                showProcess(false);
                var params = {};
                params.element = _datagrid;
                params.data = data;
                resultCallback(params);
            },
            onLoadError: function () {
                showProcess(false);
                $.messager.alert('温馨提示', '由于网络或服务器太忙，提交失败，请重试！');
            }
        });
    }

</script>

#end


